﻿using Furion.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.CMS.Core
{
    /// <summary>
    /// 工作任务定义基类
    /// <para>通过反射自动发现</para>
    /// </summary>
    public interface ICrontabDefinition : ISingleton
    {
        /// <summary>
        /// 显示名称
        /// </summary>
        string DisplayName { get; }
        /// <summary>
        /// 执行
        /// </summary>
        void Execute();
        /// <summary>
        /// 获取执行结果
        /// </summary>
        /// <returns></returns>
        string GetResult();
    }
}
